from os import sendfile


class Iterable1:
    class Iterable2:
        def __init__(self, num, end) -> None:
            self.num = num
            self.end = end

        def __iter__(self):
            return self

        def __next__(self):
            if self.num < self.end:
                self.num += 1
                return self.num
            else:
                raise StopIteration

    def __init__(self) -> None:
        pass

    def __iter__(self):
        return self.Iterable2(10, 15)


a = Iterable1()
for i in a:
    print(i)